package binary;

public class HexDemo {
    public static void main(String[] args) {

        int b=0x2fd47b;
        int c= 0b10_1111_1101_0100_0111_1011;
        System.out.println(Integer.toBinaryString(b));
        System.out.println(Integer.toBinaryString(c));
        System.out.println(Integer.toHexString(b));
        System.out.println(Integer.toHexString(c));
        System.out.println(b);
        System.out.println(c);

    }
}
